/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

:root {
    --primary-color: #1890ff;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #f5222d;
    --text-primary: #262626;
    --text-secondary: #8c8c8c;
    --border-color: #e8e8e8;
    --bg-light: #f5f5f5;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body {
    background-color: #f0f2f5;
    color: var(--text-primary);
    line-height: 1.5;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.prototype-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

/* 原型页面框架 */
.prototype {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 360px;
    height: 640px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.prototype-title {
    font-size: 16px;
    text-align: center;
    padding: 10px;
    background: #f6f6f6;
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
}

/* 头部导航 */
.app-header {
    background: var(--primary-color);
    color: white;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    justify-content: space-between;
    position: relative;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

.back-button, .header-action {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 底部导航 */
.bottom-nav {
    display: flex;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 56px;
    background: white;
    border-top: 1px solid var(--border-color);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

/* 列表样式 */
.list {
    overflow-y: auto;
    flex: 1;
}

.list-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-weight: bold;
}

.item-content {
    flex: 1;
}

.item-title {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.item-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.item-right {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

/* 表单样式 */
.form {
    padding: 15px;
}

.form-item {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0 10px;
}

textarea.form-input {
    height: 80px;
    padding: 10px;
}

.form-select {
    width: 100%;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0 10px;
    background-color: white;
}

/* 按钮样式 */
.btn {
    height: 36px;
    padding: 0 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    overflow: hidden;
}

.card-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 15px;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

.tag-blue {
    background-color: rgba(24, 144, 255, 0.1);
    color: var(--primary-color);
}

.tag-green {
    background-color: rgba(82, 196, 26, 0.1);
    color: var(--success-color);
}

.tag-orange {
    background-color: rgba(250, 173, 20, 0.1);
    color: var(--warning-color);
}

.tag-red {
    background-color: rgba(245, 82, 45, 0.1);
    color: var(--error-color);
}

/* 搜索框 */
.search-bar {
    padding: 10px 15px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
}

.search-input {
    flex: 1;
    height: 36px;
    border-radius: 18px;
    border: none;
    background-color: white;
    padding: 0 15px 0 35px;
}

.search-icon {
    position: absolute;
    left: 25px;
    color: var(--text-secondary);
}

/* 组织架构树 */
.tree-node {
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.tree-toggle {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.tree-child {
    padding-left: 25px;
}

/* 日历 */
.calendar {
    width: 100%;
    border-collapse: collapse;
}

.calendar th, .calendar td {
    text-align: center;
    padding: 8px;
}

.calendar th {
    background-color: #f5f5f5;
}

.calendar .today {
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
}

/* 工作流程 */
.workflow-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.step-number.active {
    background-color: var(--primary-color);
}

.step-line {
    height: 20px;
    width: 1px;
    background-color: var(--text-secondary);
    margin: 5px 0 5px 12px;
}

/* 文件列表 */
.file-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.file-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 20px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 15px;
    margin-bottom: 4px;
}

.file-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 通知徽标 */
.badge {
    position: relative;
}

.badge-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: var(--error-color);
    border-radius: 50%;
}

/* 开关控件 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 流程设计器 */
.workflow-designer {
    background: #f9f9f9;
    overflow: auto;
    position: relative;
    flex: 1;
}

.workflow-canvas {
    position: relative;
    min-height: 100%;
    background-image: linear-gradient(#ddd 1px, transparent 1px), linear-gradient(90deg, #ddd 1px, transparent 1px);
    background-size: 20px 20px;
}

.workflow-node {
    position: absolute;
    width: 120px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 2;
    user-select: none;
}

.workflow-node-header {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    cursor: move;
}

.workflow-node-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 8px;
}

.workflow-node-body {
    padding: 8px;
}

.workflow-connector {
    position: absolute;
    height: 2px;
    background-color: #999;
    z-index: 1;
}

.workflow-connector:after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 8px solid #999;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.workflow-toolbox {
    position: absolute;
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 3;
    padding: 10px;
}

.workflow-toolbox-title {
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.workflow-toolbox-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 5px;
}

.workflow-toolbox-item:hover {
    background-color: #f5f5f5;
}

.workflow-toolbox-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 8px;
}

.workflow-toolbox-text {
    font-size: 14px;
}

/* 高级工作流功能 */
.workflow-property-panel {
    position: absolute;
    width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 3;
    padding: 0;
    overflow: hidden;
    max-height: 460px;
    display: flex;
    flex-direction: column;
}

.workflow-panel-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}

.workflow-panel-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.workflow-panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.workflow-panel-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    cursor: pointer;
}

.workflow-panel-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.workflow-panel-footer {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.workflow-connection-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 3;
}

.workflow-connection-point.top {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.workflow-connection-point.right {
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
}

.workflow-connection-point.bottom {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.workflow-connection-point.left {
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
}

.workflow-variable {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: #f9f9f9;
}

.workflow-variable-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.workflow-variable-content {
    flex: 1;
}

.workflow-variable-name {
    font-size: 14px;
    color: var(--text-primary);
}

.workflow-variable-type {
    font-size: 12px;
    color: var(--text-secondary);
}

.condition-builder {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.condition-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.condition-field {
    flex: 2;
}

.condition-operator {
    flex: 1;
    margin: 0 5px;
}

.condition-value {
    flex: 2;
}

.condition-actions {
    margin-left: 10px;
}

.timeline-view {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item:last-child:before {
    height: 12px;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-content {
    background-color: white;
    border-radius: 4px;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.timeline-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.trigger-setup {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.trigger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.trigger-title {
    font-weight: bold;
}

.trigger-content {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* 邮件系统样式 */
.mail-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.mail-item.unread {
    background-color: rgba(24, 144, 255, 0.05);
}

.mail-item.unread:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.mail-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    color: white;
    background-color: var(--primary-color);
    font-size: 16px;
}

.mail-content {
    flex: 1;
    min-width: 0;
}

.mail-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.mail-sender {
    font-weight: bold;
    font-size: 15px;
    color: var(--text-primary);
}

.mail-time {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: 10px;
}

.mail-subject {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-preview {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-actions {
    display: flex;
    gap: 8px;
    color: var(--text-secondary);
}

.mail-action-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.mail-action-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mail-attachment {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 10px;
}

.mail-attachment-icon {
    font-size: 16px;
    color: var(--text-secondary);
    margin-right: 8px;
}

.mail-attachment-name {
    flex: 1;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-attachment-size {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 10px;
}

.mail-attachment-action {
    margin-left: 8px;
    color: var(--primary-color);
    cursor: pointer;
}

.mail-detail-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mail-detail-subject {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.mail-detail-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.mail-detail-body {
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.mail-compose-footer {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

/* 打卡签到样式 */
.check-in-stats {
    display: flex;
    margin-bottom: 20px;
}

.check-in-stat-item {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.check-in-stat-item:not(:last-child) {
    margin-right: 10px;
}

.check-in-stat-value {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.check-in-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.check-in-btn {
    height: 50px;
    border-radius: 25px;
    font-size: 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.check-in-btn i {
    font-size: 20px;
}

.check-in-calendar {
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-title {
    font-size: 16px;
    font-weight: bold;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
}

.calendar-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    position: relative;
}

.calendar-day.current-month {
    background-color: #f5f5f5;
}

.calendar-day.today {
    background-color: rgba(24, 144, 255, 0.1);
    color: var(--primary-color);
    font-weight: bold;
}

.calendar-day.checked-in {
    background-color: rgba(82, 196, 26, 0.1);
}

.calendar-day.checked-in:after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--success-color);
}

.calendar-day.late {
    background-color: rgba(250, 173, 20, 0.1);
}

.calendar-day.late:after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--warning-color);
}

.check-in-record {
    display: flex;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: white;
}

.check-in-record-date {
    flex: 1;
}

.check-in-record-day {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.check-in-record-status {
    font-size: 12px;
    color: var(--text-secondary);
}

.check-in-record-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.check-in-record-in {
    font-size: 14px;
    margin-bottom: 4px;
}

.check-in-record-out {
    font-size: 14px;
    color: var(--text-secondary);
}

.check-in-on-time {
    color: var(--success-color);
}

.check-in-late {
    color: var(--warning-color);
}

.location-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(24, 144, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
} 